import request from '@/utils/request'

// 查询岗位job管理列表
export function listJobbasicinfo(query) {
  return request({
    url: '/work/jobbasicinfo/list',
    method: 'get',
    params: query
  })
}

// 查询岗位job管理详细
export function getJobbasicinfo(jobId) {
  return request({
    url: '/work/jobbasicinfo/' + jobId,
    method: 'get'
  })
}

//新增岗位job管理
export function addJobbasicinfo(data) {
  return request({
    url: '/work/jobbasicinfo',
    method: 'post',
    data: data
  })
}

// 修改岗位job管理
export function updateJobbasicinfo(data) {
  return request({
    url: '/work/jobbasicinfo',
    method: 'put',
    data: data
  })
}

// 删除岗位job管理
export function delJobbasicinfo(jobId) {
  return request({
    url: '/work/jobbasicinfo/' + jobId,
    method: 'delete'
  })

}

//收藏岗位
export function collectJob(jobId){
  return request({
    url: '/collection/collection/collect/' + jobId,
    method: 'get'
  })
}
